package com.fourth.entity;

import com.baomidou.mybatisplus.annotation.Version;

/**
 * ClassName: BaseVersionModel
 * description: 带乐观锁字段
 * @author wsy
 * @Date: 2022/11/17 22:57
 * @since JDK 1.8
 */
public class BaseVersionModel extends BaseModel {

    @Version
    protected Integer version;

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "BaseVersionModel{" +
                "version=" + version +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
